package com.tbs.broadcast.rabbitmq.config.property;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties("tbs.rabbitmq")
@Data

public class RabbitMqProperty {
    /**
     * 是否初始化RabbitMQ组件
     */
    private boolean initializable = false;

    /**
     * 交换机名称
     */
    private String exchangeName = "tbs.broadcast.exchange";

    /**
     * 队列名称
     */
    private String queueName = "tbs.broadcast.queue";

    /**
     * 路由键
     */
    private String routingKey = "tbs.broadcast.routing.key";

    /**
     * 节点ID
     */
    private String nodeId;

    /**
     * 是否启用发布确认
     */
    private boolean publisherConfirm = true;
}
